package com.example.demo.user.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 服务人员表;
 * </p>
 *
 * @author 涛
 * @since 2024-08-01
 */
@Data
public class UServiceUser implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 头像
     */
    @TableField("AVATAR")
    private String avatar;

    /**
     * 联系方式
     */
    @TableField("CONTACT")
    private String contact;

    /**
     * 昵称
     */
    @TableField("NAME")
    private String name;

    /**
     * 身高
     */
    @TableField("HEIGHT")
    private BigDecimal height;

    /**
     * 体重
     */
    @TableField("WEIGHT")
    private BigDecimal weight;

    /**
     * 年龄
     */
    @TableField("AGE")
    private Integer age;

    /**
     * 学历
     */
    @TableField("DEGREE")
    private String degree;

    /**
     * 服务类型
     */
    @TableField("SERVICE_TYPE")
    private String serviceType;

    /**
     * 特长
     */
    @TableField("SPECIALTY")
    private String specialty;

    /**
     * 照片墙
     */
    @TableField("IMAGES")
    private String images;

    /**
     * 自我介绍
     */
    @TableField("INTRODUCE")
    private String introduce;

    /**
     * 账号类目;TypeClassification 外键判断属于哪个主体账号下
     */
    @TableField("CATEGORY_CODE")
    private String categoryCode;

    /**
     * 账号状态
     */
    @TableField("STATUS")
    private String status;

    /**
     * IP
     */
    @TableField("IP")
    private String ip;

    /**
     * 属地
     */
    @TableField("ADDRESS")
    private String address;

    /**
     * 微信unionld
     */
    @TableField("WXUNIONID")
    private String wxunionid;

    /**
     * 微信openId
     */
    @TableField("WXOPENID")
    private String wxopenid;

    /**
     * 创建人
     */
    @TableField("CREATED_BY")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value="CREATED_TIME",fill = FieldFill.INSERT)
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private LocalDateTime createdTime;

    /**
     * 更新人
     */
    @TableField("UPDATED_BY")
    private String updatedBy;

    /**
     * 更新时间
     */
    @TableField(value="UPDATED_TIME",fill = FieldFill.UPDATE)
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private LocalDateTime updatedTime;


    @Override
    public String toString() {
        return "UServiceUser{" +
        "id=" + id +
        ", avatar=" + avatar +
        ", contact=" + contact +
        ", name=" + name +
        ", height=" + height +
        ", weight=" + weight +
        ", age=" + age +
        ", degree=" + degree +
        ", serviceType=" + serviceType +
        ", character=" + specialty +
        ", images=" + images +
        ", introduce=" + introduce +
        ", categoryCode=" + categoryCode +
        ", status=" + status +
        ", ip=" + ip +
        ", address=" + address +
        ", wxunionid=" + wxunionid +
        ", wxopenid=" + wxopenid +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        "}";
    }
}
